Skip to contentSkip to conversation

unvanquished & nexuiz crash after switching AA

Bug 89015 [email protected] 1 participant 19 messages Feb 6, 2015 – Aug 24, 2015

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=89015

Bug ID: 89015
Summary: [radeonsi] unvanquished & nexuiz crash after switching
AA
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 113233
--> https://bugs.freedesktop.org/attachment.cgi?id=113233&action=edit
unvanquished.log

Without AA everything looks good. Atfer turn on antialliasing both games crash with log:

EE r600_texture.c:326 r600_texture_get_fmask_info - Got error in surface_init while allocating FMASK

and

"_name_of_process_":dri2.c:547: dri2_allocate_textures: Assertion `drawable->msaa_textures[statt]' failed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #1 from Arek Ruśniak <[email protected]> --- Created attachment 113234
--> https://bugs.freedesktop.org/attachment.cgi?id=113234&action=edit
nexuiz.log

sw:
linux:drm-next-3.20
mesa: git-d4a461c
llvm: r228386
xorg: 1.17.0 + modesetting instead radeon

hw:
capeverde

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #2 from Arek Ruśniak <[email protected]> --- i've tried this with xf86-video-ati and it looks like the problem is in modesetting ddx.
With radeon AA works fine.

Should i fill new bug in xorg/modesetting thread?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Drivers/Gallium/radeonsi    |Driver/modesetting
           Assignee|[email protected] |[email protected]
                   |.org                        |
            Product|Mesa                        |xorg
         QA Contact|[email protected] |[email protected]
                   |.org                        |

--- Comment #3 from Michel Dänzer <[email protected]> --- Please attach the output of glxinfo from using the modesetting and radeon drivers.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Driver/modesetting          |Drivers/Gallium/radeonsi
           Assignee|[email protected]       |[email protected]
                   |                            |.org
            Product|xorg                        |Mesa
         QA Contact|[email protected]       |[email protected]
                   |                            |.org

--- Comment #6 from Michel Dänzer <[email protected]> --- Somebody needs to track down why radeon_surface_init returns a non-0 value. I think it most likely comes from si_surface_sanity, but I'm not sure.

For now, let's assume this is a radeonsi driver bug.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #7 from Igor Ulyanov <[email protected]> ---
Please check your kernel version and if it is outdated test with at least 3.19 and rebuilded xf86-video-ati.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #8 from Igor Ulyanov <[email protected]> ---
kernel 3.19 and xf86-video-ati current git version fixed similar problem for me.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #9 from Arek Ruśniak <[email protected]> ---
Igor, i use 1-day old git/svn for mesa/llvm/kenel except for xf86-video-ati, i don't use it at all. If your distribution use xorg-1.17.x you may try xf86-video-modesetting. It would be really nice if you can. As I wrote before, for xf86-video-ati the problem doesn't exist ...at least for me.

Could you tell which version of radeon ddx failed for unvanquished + AA.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #10 from Arek Ruśniak <[email protected]> --- Created attachment 113672
--> https://bugs.freedesktop.org/attachment.cgi?id=113672&action=edit
somewhere between mesa 10.2.x & 10.3

I've tested some tags of mesa with: llvm-3.5.1 & xorg 1.17.1+modesetting & drm_next.

1)mesa 10.2.9 - looks ok
2)mesa 10.3.(0,1)&10.4.4 - looks like a crap (see pic) but not fails (play music, can screen shot, can escape with ALT+F4)
3)mesa dev-10.(5,6) - crashes

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

Arek Ruśniak <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #113672|text/plain                  |image/png
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author Reviewed-by Jason Ekstrand
#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #11 from Arek Ruśniak <[email protected]> --- between stage 2&3 the winner is:

3da735cc4c478b0ab2ecc2164899cf9d77dc671a is the first bad commit commit 3da735cc4c478b0ab2ecc2164899cf9d77dc671a

Author: Jason Ekstrand <[email protected]>
Date:   Sat Aug 23 10:45:00 2014 -0700

main: Add a concept of an array format

An array format is a 32-bit integer format identifier that can represent any format that can be represented as an array of standard GL datatypes. Whie the MESA_FORMAT enums provide several of these, they don't account for all of them.

v2 by Iago Toral Quiroga <[email protected]>:
- Implement mesa_array_format as a plain bitfiled uint32_t type instead of using a struct inside a union to access the various components packed in it. This is necessary to support bigendian properly, as pointed out by Ian.
- Squashed: Make float types normalized

v3 by Iago Toral Quiroga <[email protected]>:
- Include compiler.h in formats.h, which is necessary to build in MSVC as indicated by Brian Paul.

:040000 040000 87f8588bd2eeda5fbf0669360f2ff66564c93a3c
f2b353b9593f085e196f184a2d6ebee2e2194dea M src

for stages 1&2... wip

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author Reviewed-by Marek Olšák Reviewed-by Ben Skeggs
#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #12 from Arek Ruśniak <[email protected]> --- and for 1->2 trigger is:
27c686309e035d211c7cf38d1c0902f1bf2886c5 is the first bad commit commit 27c686309e035d211c7cf38d1c0902f1bf2886c5

Author: Axel Davy <[email protected]>
Date:   Wed Jun 18 23:27:30 2014 -0400

gallium: Add __DRIimageDriverExtension support to gallium

__DRIimageDriverExtension is used by GLX DRI3 and Wayland.

This patch is a rewrite of
http://lists.freedesktop.org/archives/mesa-dev/2014-May/060318.html
and
http://lists.freedesktop.org/archives/mesa-dev/2014-May/060317.html

Previous patches were:

:040000 040000 bed5212b498ec77bf272f1caa433442a3e897601
d1b1be3159255a47c2fa21e2ad0735798cbc78b7 M src

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #13 from smoki <[email protected]> ---

modesetting in dri2 mode is fine here :). Probably, but do you use xserver's
modesetting driver in dri3 mode?

There are whole bunch of piglit crashes and gpu lockups here with anything
dri3 related - be it with xserver's modeseting or radeon ddx (i tried this patched radeon https://github.com/iXit/xf86-video-ati/commits/master and it suffer from the same issues like modesetting)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #14 from Arek Ruśniak <[email protected]> ---
Is there any way to switch dri mode? As far i know xorg1.17+modesseting just uses dri3. There is no log with dmesg/xorg/systemd when dri3 is used. So answer for your question is: so probably yes, but i don't know for sure.

DDX from https://github.com/iXit/xf86-video-ati/ has the same symptoms like modeseting but looks worse a lot (this is why i never like it)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #15 from Arek Ruśniak <[email protected]> ---
I've just tried new mesa/master and it doesn't crash anymore. Problem goes back to stage 2 (see pics), but:
-----
EE r600_texture.c:326 r600_texture_get_fmask_info - Got error in surface_init while allocating FMASK.
-----
is still present.

Probably is like smoki said, dri3 is problem here and if there's no official support for dri3, should we really care about it for now?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #16 from Marek Olšák <[email protected]> --- Apparently, MSAA doesn't work with DRI3. I think it's a bug in st/dri.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #17 from smoki <[email protected]> ---

This works fine for me in current ddx and mesa in DRI3 mode.

Please recheck with current mesa.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

--- Comment #18 from Marek Olšák <[email protected]> --- This might have fixed this:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6611f65047575054a38ce83ebfe0331e39e1774f

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=89015

Marek Olšák <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #19 from Marek Olšák <[email protected]> --- (In reply to smoki from comment #17)

Quoted 3 lines

This works fine for me in current ddx and mesa in DRI3 mode.

Please recheck with current mesa.

(In reply to Marek Olšák from comment #18)

Quoted 3 lines

This might have fixed this:
http://cgit.freedesktop.org/mesa/mesa/commit/
?id=6611f65047575054a38ce83ebfe0331e39e1774f

Closing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel